import { put } from 'redux-saga/effects';
// import { getUserInfo } from './../apis';
import { getQueryDateComplete } from '../redux/actions/query';

export function* fetchQueryData() {
  try {
    const data = {
      queryDate: {
        bannerList: [
          {
            id: 1,
          },
          {
            id: 2,
          },
        ],
      },
    };
    console.log('fetchQueryData');
    // const data = yield call(getUserInfo, params);
    yield put(getQueryDateComplete(data));
  } catch (error) {
    console.log(error);
  }
}
